package com.company.service;

import com.company.interfaceservice.IBrokerService;
import org.apache.servicecomb.provider.pojo.RpcReference;
import org.apache.servicecomb.provider.pojo.RpcSchema;
@RpcSchema(schemaId = "rpcBroker")
public class RpcBroker {
    @RpcReference(microserviceName = "Broker",schemaId = "broker")
    public IBrokerService iBrokerService;

    public String callBroker(String input){
        input = iBrokerService.cbService(input);
        System.out.println(input + " iBrokerService instanceof is " + iBrokerService.getClass());
        return input;
    }
}
